Skip to main content

NetApi

All URIs are relative to //api.estuary.tech/

MethodHTTP requestDescription
adminMinersGetGET /admin/miners/Get all miners
publicMinersFailuresMinerGetGET /public/miners/failures/{miner}Get all miners
publicNetAddrsGetGET /public/net/addrsNet Addrs
publicNetPeersGetGET /public/net/peersNet Peers

adminMinersGet

ApiMinerResp adminMinersGet()

Get all miners

This endpoint returns all miners. Note: value may be cached

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.NetApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");

NetApi apiInstance = new NetApi();
try {
ApiMinerResp result = apiInstance.adminMinersGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetApi#adminMinersGet");
e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

ApiMinerResp

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

publicMinersFailuresMinerGet

String publicMinersFailuresMinerGet(miner)

Get all miners

This endpoint returns all miners

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.NetApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");

NetApi apiInstance = new NetApi();
String miner = "miner_example"; // String | Filter by miner
try {
String result = apiInstance.publicMinersFailuresMinerGet(miner);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetApi#publicMinersFailuresMinerGet");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
minerStringFilter by miner

Return type

String

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

publicNetAddrsGet

List<String> publicNetAddrsGet()

Net Addrs

This endpoint is used to get net addrs

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.NetApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");

NetApi apiInstance = new NetApi();
try {
List<String> result = apiInstance.publicNetAddrsGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetApi#publicNetAddrsGet");
e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

List<String>

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

publicNetPeersGet

List<String> publicNetPeersGet()

Net Peers

This endpoint is used to get net peers

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.NetApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");

NetApi apiInstance = new NetApi();
try {
List<String> result = apiInstance.publicNetPeersGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetApi#publicNetPeersGet");
e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

List<String>

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json